﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="collaboration_attach_view.aspx.cs" Inherits="Ccit.Mgoa.Collaboration.collaboration_attach_view" %>

<%@ Register src="../USERCONTROLS/AttachUpLoad.ascx" tagname="AttachUpLoad" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <style type="text/css"> 
        html { 
            overflow-x:hidden; /*隐藏水平滚动条*/ 
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <input type="hidden" id="hdCommentId" runat="server" />
        <table border="0" id="tbComment" cellpadding="0" cellspacing="0" runat="server" align="center" width="100%" class="tableborder">
            <tr>
                <td style="padding-left:5px">
                    <asp:Label runat="server" ID="lblPublisherName"></asp:Label>&nbsp;&nbsp;
                    <asp:Label runat="server" ID="lblBelongDept"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="pformright" style="padding-left:5px">
                    发表于：<asp:Label runat="server" ID="lblPublishDate"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="pformright" runat="server" id="tdCommentContent" style="padding-left:5px"></td>
            </tr>
            <tr>
                <td class="pformright" style="padding-left:5px">
                    <nobr>
                        附件：<uc1:AttachUpLoad ShowStyle="1" ID="attach" runat="server" />
                    </nobr>
                </td>
            </tr>
        </table>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td>&nbsp;</td>
            </tr>
        </table>
    </form>
    
    <script language="javascript" type="text/javascript">
        $(document).ready(function(){
	            var oCommentId=document.getElementById("hdCommentId").value;
                var oHeight=document.body.scrollHeight;
                var otable=parent.document.getElementById("tbComment");
                var oRowsCount=otable.rows.length;
                var oRow;
                oRow=otable.rows.item("row_"+oCommentId);
                var oChild=oRow.children(0);
                oChild.children[0].height=oHeight;
            }
        );
    </script>
</body>
</html>
